package com.InheritInterface;

/**
 * ClassName: sportsman
 * Package:
 * Description:
 *
 * @Author 软件232班——欧阳昊淼
 * @Create 2024/9/9 17:55
 * @Version 17.0.2
 */
public class Sportsman {
    private String name;
    private int id;
    private String position;
    private String team;
    private double height;

    public Sportsman(double height, int id, String name, String position, String team) {
        this.height = height;
        this.id = id;
        this.name = name;
        this.position = position;
        this.team = team;
    }

    public Sportsman() {
         String name = "C罗";
         int id = 9;
         String position = "前锋";
         String team = "皇家马德里";
         double height = 1.87;
    }

    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public String getTeam() {
        return team;
    }

    public void setTeam(String team) {
        this.team = team;
    }

    @Override
    public String toString() {
        return "Sportsman{" +
                "height=" + height +
                ", name='" + name + '\'' +
                ", id=" + id +
                ", position='" + position + '\'' +
                ", team='" + team + '\'' +
                '}';
    }
}
